#cs ----------------------------------------------------------------------------
	
	$Author: bjoern.kaiser $
	$LastChangedDate: 2008-05-05 07:18:45 +0000 (Mon, 05 May 2008) $
	
	Script Function:
	logging functions
	
#ce ----------------------------------------------------------------------------

; Script Start - Add your code below here

#include-once

If FileExists(@ScriptDir & "\logviewer.au3") Then
	Run(@AutoItExe & " " & @ScriptDir & "\logviewer.au3")
EndIf

Func _log($strType, $strMsg)
	Select
		Case $strType = "F"
			FileWriteLine($gHndLog, "[ FAIL ] " & $strMsg)
		Case $strType = "I"
			FileWriteLine($gHndLog, "[ INFO ] " & $strMsg)
		Case $strType = "O"
			FileWriteLine($gHndLog, "[  OK  ] " & $strMsg)
		Case $strType = "D"
			If $gBinDebug Then
				FileWriteLine($gHndLog, "[ DEBG ] " & $strMsg)
			EndIf
	EndSelect
EndFunc   ;==>_log
